home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / c / indents.zip / makefile.gcc < prev    next >
Makefile  |  1993-05-30  |  1KB  |  44 lines

  1. # Copyright (c) 1987 Regents of the University of California.
  2. # All rights reserved.
  3. #
  4. # Redistribution and use in source and binary forms are permitted provided
  5. # that the above copyright notice and this paragraph are duplicated in all
  6. # such forms and that any documentation, advertising materials, and other
  7. # materials related to such distribution and use acknowledge that the software
  8. # was developed by the University of California, Berkeley.  The name of the
  9. # University may not be used to endorse or promote products derived from this
  10. # software without specific prior written permission. THIS SOFTWARE IS
  11. # PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
  12. # WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS
  13. # FOR A PARTICULAR PURPOSE.
  14. #
  15. #       @(#)Makefile    5.9 (Berkeley) 88/09/15
  16. #
  17. # Makefile for gcc under BSD UNIX. Peter Hadfield, May 1993.
  18.  
  19. CC=     gcc
  20. CFLAGS= -Wall
  21. SRCS=    indent.c io.c lexi.c parse.c comment.c args.c
  22. OBJS=    indent.o io.o lexi.o parse.o comment.o args.o
  23.  
  24. all: indent
  25.  
  26. indent: ${OBJS}
  27.     ${CC} -o $@ ${CFLAGS} ${OBJS}
  28.  
  29. depend: ${SRCS}
  30.     mkdep ${CFLAGS} ${SRCS}
  31.  
  32. indent.o:       indent.c   globals.h proto.h codes.h
  33.  
  34. lexi.o:         lexi.c     globals.h proto.h codes.h
  35.  
  36. parse.o:        parse.c    globals.h proto.h codes.h
  37.  
  38. io.o:           io.c       globals.h proto.h
  39.  
  40. comment.o:      comment.c  globals.h proto.h
  41.  
  42. args.o:         args.c     globals.h proto.h
  43.  
  44.